// Fill out your copyright notice in the Description page of Project Settings.

#include "WorldRefLineGraph.h"

void FWorldRefLineGraph::Clear()
{
	_reflines.clear();
}

void FWorldRefLineGraph::Add(const FWorldRoad::Ptr& road, const FWorldRefLineSpline::Ptr& spline)
{
	_reflines[road] = spline;
}

FWorldRefLineSpline::Ptr FWorldRefLineGraph::Get(const FWorldRoad::Ptr& road) const
{
	auto it = _reflines.find(road);
	if (it != _reflines.end())
	{
		return it->second;
	}
	return nullptr;
}
